﻿using System;
using System.Collections.Generic;
using System.ServiceModel;
using XchangeStreamer.Utilities;

namespace XchangeStreamer.Core.Retriever
{
    [ServiceContract(Name = "IRetriever", Namespace = Settings.Namespace)]
    public interface IRetriever
    {
        [OperationContract(IsOneWay = true, AsyncPattern = true, Name = Settings.Name, Action = Settings.Action)]
        IAsyncResult BeginRetrieve(int clientMessageId, int serverMessageId, int[] topicsId, AsyncCallback callback, object state);
        void EndRetrieve(IAsyncResult result);
    }
}
